<?php
$filePath = $uploadDir . $data->file;
$fileUrl = $uploadUrl . $data->file;
$link = Yii::app()->createUrl('dfront/news/detail', array(
    'page' => $data->id . '-' . $data->title_seo,
));

$className_1 = 'grid_3 alpha';
$className_2 = 'grid_6 omega';

if ( ! is_file($filePath) ) {
    $fileUrl = $rootUrl . Yii::app()->params['store_url'] . 'default_images/tintuc.jpg';
}
?>

<div class="newsCategoryRowWrapper">
    <div class="<?php echo $className_1 ?>">
        <a href="<?php echo $link ?>" class="link">
            <img src="<?php echo $fileUrl ?>"/>
        </a>
    </div>
    <div class="<?php echo $className_2 ?>">
        <h4>
            <a href="<?php echo $link ?>" class="link lnColor5">
                <?php echo $data->title ?>
            </a>
        </h4>
        <p class="date txtColor2">
            <?php
            echo Yii::app()->format->formatDateType2($data->update_time);
            ?>
        </p>
        <p class="summary">
            <?php echo strip_tags($data->short_content) ?>
        </p>
        <p class="control">
            <a href="<?php echo $link ?>" class="link lnColor1 btn_2">
                <?php echo Yii::t('label', 'detail'); ?>
            </a>
        </p>
    </div>
</div>
<div class="newsCategoryRowLine"></div>